package cn.tedu.rms.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    SUCCESS(2000, "OK"),
    LOGIN_SUCCESS(2001, "登录成功"),
    OPERATION_SUCCESS(2002, "操作成功"),


    NOT_LOGIN(4000, "未登录"),
    PASSWORD_ERROR(4002, "用户名或密码错误"),
    USERNAME_ERROR(4003, "用户名或密码错误"),
    PHONE_ERROR(4004, "手机号码不存在"),

    OPERATION_FAILED(5001, "操作失败"),
    VALIDATE_ERROR(5002, "请求参数错误"),
    USERNAME_ALREADY_EXISTS(5003, "用户名被占用"),
    DATA_UNEXISTS(5004, "请求数据不存在"),
    //该时间段有预约，不能新增预约
    TIME_ALREADY_RESERVED(5005, "该时间段有预约，不能新增预约"),
    // 用户被禁用 USER_DISABLED
    USER_DISABLED(5006, "用户被禁用"),
    // 该菜系下还有菜品，不能删除
    DISH_TYPE_NOT_EMPTY(5007, "该菜系下还有菜品，不能删除"),
    ;

    //状态码、状态码描述
    private Integer code;
    private String msg;
}